-- GENERATED SPELL FOR [Elder Ungriz] --


function spell0_18415(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18415', 3000, 1)
end

function Sorts_18415(pUnit, Event)
local choix_sorts_18415 = math.random(0, 0)
if choix_sorts_18415 == 0 then
pUnit:RegisterEvent('spell0_18415', 1, 1)
end
end

function mob18415_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18415', math.random(1500, 3000), 1)
end

function mob18415_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18415_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18415_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18415, 1, 'mob18415_Action')
RegisterUnitEvent(18415, 2, 'mob18415_Leave')
RegisterUnitEvent(18415, 3, 'mob18415_Kill')
RegisterUnitEvent(18415, 4, 'mob18415_Die')
